/*

 @登录类型 
 IloginItem             //登录用户名 密码 
 LoginUser              //登录用户信息

 @试题管理类型
 insert_QuestionsType   //添加试题类型
 del_QuestionsType      //删除指定的试题类型
 questions              //添加试题
 questionsCondition     //按条件获取试题
 questionsUpdate        //更新试题
 get_QuestionsType      //获取所有的试题类型
 subjectItem            //获取所有的课程
 examTypeItem           //获取所有的考试类型
 getQuestions_newItem   //获取所有的试题
*/
export interface IloginItem {
    user_name: string,
    user_pwd: string,
    remember: boolean
}
//登录用户信息
export interface LoginUser {
    avatar: string,
    iat: number,
    identity_id: string,
    identity_text: string,
    signTime: number,
    user_id: string,
    user_name: string,
}
//添加试题类型 
export interface insert_QuestionsType {
    text: string,
    sort: string
}
//删除指定的试题类型 
export interface del_QuestionsType {
    id: string
}
//添加试题
export interface questions {
    questions_type_id: string,
    questions_stem: string,
    subject_id: string,
    exam_id: string,
    user_id: string,
    questions_answer: string,
    title: string
}
//按条件获取试题 
export interface questionsCondition {
    questions_type_id: string,
    subject_id: string,
    exam_id: string,
}
//更新试题 
export interface questionsUpdate {
    questions_id: string,
    title: string,
    questions_stem: string,
    questions_answer: string,
    subject_id: string,
    questions_type_id: string,
    exam_id: string,
}
//获取所有的试题类型
export interface get_QuestionsType {
    questions_type_id: string,
    questions_type_text: string,
    questions_type_sort: number,

}
//获取所有的课程
export interface subjectItem {
    subject_id: string,
    subject_text: string
}
//获取所有的考试类型
export interface examTypeItem {
    exam_id: string,
    exam_name: string
}
//获取所有的试题
export interface getQuestions_newItem {
    questions_id: string,
    json_path: string
    subject_text: string
    exam_name: string
    user_name: string
    questions_type_text: string
    questions_stem: string
    exam_id: string,
    title: string,
    questions_answer: string,
    questions_type_id: string,
    subject_id: string,
    user_id: string,
}
// 添加接口
export interface Grade {
    grade_id: string,
    grade_name: string,
    room_id: string,
    room_text: string,
    subject_id: string,
    subject_text: string,
}
// 获取所有教室接口
export interface Room {
    room_id: string,
    room_text: string,
}

// 展示用户数据
export interface IuserUser {
    avatar: string,
    identity_text: string,
    user_id: string,
    user_name: string,
    user_pwd: string,
}
// 展示身份数据
export interface IuserIdenttiy {
    identity_id: string,
    identity_text: string,
}
// 展示api接口权限数据
export interface IuserApi_authority {
    api_authority_id: string,
    api_authority_method: string,
    api_authority_text: string,
    api_authority_url: string,
}
// 展示身份和api权限关系
export interface IuserIdentity_api_authority_relation {
    api_authority_method: string,
    api_authority_text: string,
    api_authority_url: string,
    identity_api_authority_relation_id: string,
    identity_text: string,
}
// 获取视图权限数据
export interface IuserView_authority {
    view_authority_id: string,
    view_authority_text: string,
    view_id: string,
}
// 给身份设定视图权限
export interface IuserIdentity_view_authority_relation {
    identity_text: string,
    identity_view_authority_relation_id: string,
    view_authority_text: string,
    view_id: string,
}
// 获取所有学生接口
export interface Student {
    grade_id: string;
    grade_name: string;
    room_id: string;
    room_text: string;
    student_id: string;
    student_name: string;
    student_pwd: string;
    subject_id: string;
    subject_text: string;
}
// 获取所有没有分班的学生
export interface Students {
    student_id: string,
    student_name: string,
    student_pwd: string,
}
// 添加身份 
export interface IsetUserIdentitys {
    code: number,
    msg: string,
    identity_id?: string,
}
// 添加api接口权限
export interface IsetUserAuthorityApis {
    code: number, msg: string, api_authority_id: string
}
// 添加视图权限
export interface IsetauthorityViews{
    code:number,msg:string,view_authority_id:string
  }

//props类型
export interface PropsType {
    match: {
        isExact: boolean,
        params: {
            id: string
        },
        path: string,
        url: string
    }
}
